﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Card.DataBase
{
    public class DBManager
    {
        public static string GetConnectionString(string name)
        {
            string returnValue = null;
            System.Configuration.ConnectionStringSettings settings =
               System.Configuration.ConfigurationManager.ConnectionStrings[name];
            if (settings != null)
            {
                returnValue = settings.ConnectionString;
            }
            return returnValue;
        }

        public static string ConnectionString
        {
            get { return GetConnectionString("CARD"); }
        }
    }
}
